const uploadSvg = require.context('@/assets/icons/uploadSvg', false, /\.svg$/)
const requireAll = requireContext => requireContext.keys()

const re = /\.\/(.*)\.svg/

const SvgIcons = requireAll(uploadSvg).map(i => {
  return i.match(re)[1]
})

export default [...SvgIcons]
